﻿using System;
using System.Collections.Generic;
using Model.AuthModel;
namespace IDAL.AuthModel
{
    /// <summary>
    /// 通用组件，权限模型，接口层，模块分类
    /// </summary>
    public interface IModuleType
    {
        /// <summary>
        /// 新增模块分类
        /// </summary>
        /// <param name="info">模块分类对象</param>
        /// <returns></returns>
        bool InsertModuleType(ModuleTypeInfo info);

        /// <summary>
        /// 修改模块分类
        /// </summary>
        /// <param name="info">模块分类对象</param>
        /// <returns></returns>
        bool UpdateModuleType(ModuleTypeInfo info);

        /// <summary>
        /// 删除模块分类
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DeleteModuleType(int id);

        /// <summary>
        /// 根据编号获取模块分类
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        ModuleTypeInfo GetModuleTypeByID(int id);

        /// <summary>
        /// 获取模块分类
        /// </summary>
        /// <returns></returns>
        IList<ModuleTypeInfo> ListModuleType();
    }
}
